﻿<%@ Page Language="C#" MasterPageFile="~/SubForm.Master" AutoEventWireup="true" CodeBehind="ByBDByCAT.aspx.cs" Inherits="PreContractWeb.Report.ByBDByCAT" %>
<%@ Register Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="Microsoft.Web.UI.WebControls" TagPrefix="iewc" %>
    <%@ Register Src="ScrollReport.ascx" TagName="ScrollReport" TagPrefix="uc1" %>    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<iframe id="ifrmRpt" src="" height="0" width="0" frameborder="0" visible="false"></iframe>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td align="left">
            <iewc:TabStrip ID="tabDocument" runat="server" SepDefaultStyle="border-bottom:solid 1px bottom;"
                TabSelectedStyle="border:solid 1px #BBBBBB;border-bottom:none;padding-left:20px;padding-right:20px; background-image:url(../images/BG-Button-09.png);"
                TabHoverStyle="background-image: url(../images/BG-Button-09.png);" TabDefaultStyle="border:solid 1px BBBBBB;padding-left:20px;padding-right:20px;background-image: url(../images/BG-Button-08.png);"
                TargetID="mpTabDocumentPages" Height="20" AutoPostBack="false">
                <iewc:Tab Text="By Quarter"></iewc:Tab>
                <iewc:TabSeparator />
                <iewc:Tab Text="By Month"></iewc:Tab>
                <iewc:TabSeparator DefaultStyle="width:100%;border-bottom-width:1px; border-bottom-color:#BBBBBB; border-bottom-style:solid;" />
            </iewc:TabStrip>
        </td>
    </tr>
</table>
<iewc:MultiPage ID="mpTabDocumentPages" runat="server" CssClass="mutil_panel_body" >
    <iewc:PageView id="DocProperty" runat="server">
        <table align="center" width="98%" border="0" cellpadding="0" cellspacing="5" >       
            <tr>
                <td valign="top"><div id="divError_Quarterly" runat="server" style=" height:25;"></div></td> 
            </tr>
            <tr>
            <td align="left">
              <table>
                <tr><td></td></tr>
                
                <tr>
                    <td valign="middle" align="right">
                        <asp:DropDownList ID="drRpt_Quarterly" runat="server" ToolTip="Download Saved Report"></asp:DropDownList>
                        |&nbsp;<label id="lblRptDate_Quarterly" runat="server">报表时间：</label>
                        &nbsp;<asp:TextBox ID="txtReportDate_Quarterly" runat="server" ToolTip="请双击打开日历"　Width="60px" CssClass="cssPopdate" checkmaster="checkDate" allowempty="false" IconID="ctl00_ContentPlaceHolder1_DateIcon01_Quarterly"></asp:TextBox>&nbsp;<img
                        id="DateIcon01_Quarterly" class="DateIcon" src="../Images/calendar_18.gif"  runat="server" />
                        |&nbsp;合同分类：<asp:DropDownList ID="ddlAdjust" runat="server" AutoPostBack="false"></asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Button ID="btnExport_Quarterly" runat="server" Text="导出(Export To Excel)" Width="125px" CssClass="bgButton" ToolTip="Export to excel file"   UseSubmitBehavior="False"/>
                        <asp:Button ID="btnSave_Quarterly" runat="server" Text="保存报表(Save Report)" Width="130px" CssClass="bgButton" ToolTip="Save history report to excel file"  UseSubmitBehavior="False" />
                        <asp:Button ID="btnRunQuarter" runat="server" Text="运行报表(Run Report)" Width="130px" CssClass="bgButton" ToolTip="Run Report" OnClick="btnRunQuarter_Click"  isvalidate="true" />
                    </td>
                </tr>
                
             </table>  
             </td>          
            </tr>   
            <tr>
                    <td align="left">
                        <asp:Label id = "LabelReport_Quarterly" runat="server"></asp:Label> 
                            <b/>
                       <uc1:ScrollReport id="ScrollReport1" runat="server" AreaHeight="350px" CornerHeight="45px" CornerWidth="">
                       </uc1:ScrollReport>  
                       
                       <!--<div id="divReport_Quarterly" runat="server" style="overflow:auto;" ></div>-->
                    </td>
            </tr>                       
        </table>              
    </iewc:PageView>                                        
    <iewc:PageView id="DocDetail" runat="server">
        <table align="center" width="98%" border="0" cellpadding="0" cellspacing="5" >
            <tr>
                <td align="left">
                  <table>        
                    <tr>
                        <td height="15"><div id="divError" runat="server" style=" height:15;"></div></td> 
                    </tr>
                   </table>
                   
                   <asp:Panel ID="pnlContent" runat="server">
                      <table>
                        <tr>
                            <td valign="middle" align="right">月份：<br />Month：</td>
                            <td><asp:TextBox id="txtNoOfMonth" runat="server" Columns="2" CssClass="cssText" checkmaster="checkNumber" decimal="0" min="1" Max="12"></asp:TextBox></td>
                            <td>&nbsp;<asp:Button ID="btnRun" runat="server" Text="运行报表(Run Report)" Width="130px" CssClass="bgButton" ToolTip="Run Report" OnClick="btnRun_Click"  isvalidate="true" /></td>
                            <td>&nbsp;<asp:Button ID="btnExport" runat="server" Text="导出(Export To Excel)" Width="125px" CssClass="bgButton" ToolTip="Export to excel file"   UseSubmitBehavior="False"/></td>
                            <td>&nbsp;<asp:DropDownList ID="drRpt" runat="server" ToolTip="Download Saved Report"></asp:DropDownList></td>
                            <td valign="middle" align="right">&nbsp;&nbsp;<label id="lblRptDate" runat="server">报表时间：</label></td>
                            <td>&nbsp;<asp:TextBox ID="txtReportDate" runat="server" ToolTip="请双击打开日历"　Width="60px" CssClass="cssPopdate" checkmaster="checkDate" allowempty="false" IconID="ctl00_ContentPlaceHolder1_DateIcon01"></asp:TextBox>&nbsp;<img
                                id="DateIcon01" class="DateIcon" src="../Images/calendar_18.gif"  runat="server" /></td>
                            
                            <td>&nbsp;<asp:Button ID="btnSave" runat="server" Text="保存报表(Save Report)" Width="130px" CssClass="bgButton" ToolTip="Save history report to excel file"  UseSubmitBehavior="False" /></td>
                        </tr>
                     </table>
                  </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="left">
                     <table>
                        <tr>
                            <td valign="top">
                               <div id="divReport" runat="server" style="overflow:auto;" ></div>
                            </td>
                        </tr>
                      </table>
               
                </td>
            </tr>
        </table>
    </iewc:PageView>
 </iewc:MultiPage>

<script language ="javascript">
    window.attachEvent("onresize",resizeFunc4Q); 
    resizeFunc4Q();
//    var txtDate=document.getElementById("ctl00_ContentPlaceHolder1_txtReportDate");
//    var dtImg=document.getElementById("DateIcon01");
//    if (txtDate==null)
//    {
//        if (dtImg!=null)
//            //dtImg.
//            dtImg.style.visibility="hidden";
//    }    
</script>

</asp:Content>